package com.github.slprj.slake.log;

import java.util.logging.Logger;

/**
 * Des:
 * jdk日志工厂
 *
 * @author captain
 * @date 2022/8/19 18:08
 */
public class JdkFactory implements SlLogFactory {

    @Override
    public SlLog getLogger(String name) {
        Logger logger = Logger.getLogger(name);
        return new JdkLog(logger);
    }

    @Override
    public SlLog getLogger(Class<?> clazz) {
        Logger logger = Logger.getLogger(clazz.getName());
        return new JdkLog(logger);
    }
}
